const express = require('express')
// 2. 引入数据模型

const router = express.Router()

router.get('/patient', (req, res) => {
    let patient = [
        {
            use: "张三",
            symptom: "头晕，四肢酸痛无力",
            usephone: "13288990987",
            useage: "67",
            usesex: "男",
            useadress: "贵州省凯里市",
            usetime: "2023-02-12",
            usesection: "呼吸科",
        },
        {
            use: "李四",
            symptom: "四肢酸痛，全身无力",
            usephone: "13188990900",
            useage: "61",
            usesex: "男",
            useadress: "贵州省花溪区",
            usetime: "2023-01-12",
            usesection: "呼吸科",
        },
        {
            use: "邱妹",
            symptom: "胸口痛，全身酸痛",
            usephone: "15676665671",
            useage: "22",
            usesex: "女",
            useadress: "四川省成都市",
            usetime: "2023-03-22",
            usesection: "内科",
        },
        {
            use: "李丁真",
            symptom: "头昏眼花，下肢肿大",
            usephone: "15233441232",
            useage: "24",
            usesex: "女",
            useadress: "四川省成都市",
            usetime: "2023-01-23",
            usesection: "内科",
        },
        {
            use: "谭花",
            symptom: "恶心反胃，便秘，腹泻",
            usephone: "13244553411",
            useage: "24",
            usesex: "女",
            useadress: "四川省德阳市",
            usetime: "2023-02-22",
            usesection: "消化内科",
        },
        {
            use: "徐朱",
            symptom: "心悸，胸闷气短，高血压",
            usephone: "18976878822",
            useage: "33",
            usesex: "女",
            useadress: "四川省成都市",
            usetime: "2023-03-15",
            usesection: "心血管内科",
        },
        {
            use: "侯葛",
            symptom: "尿常规检查异常，尿色异常，浮肿",
            usephone: "13145445655",
            useage: "34",
            usesex: "男",
            useadress: "贵州省黔东南",
            usetime: "2022-12-31",
            usesection: "肾内科",
        },
        {
            use: "李大海",
            symptom: "头痛，失眠，面瘫，肌无力，昏迷",
            usephone: "13544533421",
            useage: "34",
            usesex: "男",
            useadress: "四川省成都市",
            usetime: "2019-10-12",
            usesection: "神经内科",
        },
        {
            use: "杨伟",
            symptom: "腹痛，腹胀，黑便，腹部包块，乳腺肿块",
            usephone: "14355664531",
            useage: "45",
            usesex: "女",
            useadress: "贵州省镇远县",
            usetime: "2023-04-15",
            usesection: "内分泌科",
        },
        {
            use: "邱爱花",
            symptom: "肾，输尿管，膀胱，外生殖器畸形，损伤",
            usephone: "15676558907",
            useage: "46",
            usesex: "男",
            useadress: "湖南省怀化市",
            usetime: "2023-04-11",
            usesection: "泌尿外科",
        },
        {
            use: "徐大勇",
            symptom: "腰腿痛，骨外伤，四肢疾病，颈椎病",
            usephone: "1349782212",
            useage: "56",
            usesex: "男",
            useadress: "贵州省清远县",
            usetime: "2023-04-13",
            usesection: "骨科",
        },

        {
            use: "张三三",
            symptom: "头晕，四肢酸痛无力",
            usephone: "13288990987",
            useage: "67",
            usesex: "男",
            useadress: "贵州省凯里市",
            usetime: "2023-02-12",
            usesection: "呼吸科",
        },
        {
            use: "李四四",
            symptom: "四肢酸痛，全身无力",
            usephone: "13188990900",
            useage: "61",
            usesex: "男",
            useadress: "贵州省花溪区",
            usetime: "2023-01-12",
            usesection: "呼吸科",
        },
        {
            use: "邱妹花",
            symptom: "胸口痛，全身酸痛",
            usephone: "15676665671",
            useage: "22",
            usesex: "女",
            useadress: "四川省成都市",
            usetime: "2023-03-22",
            usesection: "内科",
        }
    ]
    res.send({
        code:200,
        data:patient,
        message: '获取消息成功'
    })
})

module.exports = router

